package com.zccx.eth.dao;

import com.zccx.eth.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface UserRepository extends JpaRepository<User, Integer>,JpaSpecificationExecutor<User> {
    @Query("SELECT info FROM User info WHERE userName=?1")
    User findByName(String name);
}
